#ifndef THEMESETTINGS_H
#define THEMESETTINGS_H

#include <QWidget>
#include "button.h"
#include "dropdownbutton.h"
#include "settingsmenuitem.h"

namespace Ui {
    class ThemeSettings;
}

class ThemeSettings : public SettingsMenuItem {
    Q_OBJECT
public:
    ThemeSettings(QWidget *parent = 0);
    ~ThemeSettings();
    void saveTest();
    void assertSaved();
    void cancelTest();
    void assertCancelled();
    static QList<StyleInterface *> * stylePlugins;
    void static setStylePlugins(QList<StyleInterface *> * plugins);
    static void setWidget(QWidget * w);
public slots:
    void buttonSelected();
    void buttonSelected(Button * button);
    void reshowComponents();
    void save();
    void cancel();
protected:
    void changeEvent(QEvent *e);

private:
    Ui::ThemeSettings *ui;
    Button * saveButton;
    Button * cancelButton;
    Button * changeImage;
    static QString fileName;
    QString newFileName;
    static QWidget * widget;

};

#endif // THEMESETTINGS_H
